#include "board.h"
#include "polsys.h"


void Board_Init()
{
    TEN_PIN_INIT;
    PWM_PIN_INIT;
    // LED_PIN_INIT;
    BST_PIN_INIT;
    BUTTON_PIN_INIT;
    MIC_PIN_INIT;
    DCIN_PIN_INIT;
    ABFBV_PIN_INIT;
    ASVP_PIN_INIT;
    ASDCC_PIN_INIT;
    UART_PIN_INIT;
}

void Board_BstSetPwm(u8 new_pwm)
{
    if(new_pwm == 0)
    {
        BST_PIN_SEL_GPIO;
    }
    else
    {
        BST_PIN_SEL_PWM;
    }
    AdvTim_SetCompValue(M0P_ADTIM4, 1, new_pwm);
}
